home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / ui / OGC / Makefile < prev    next >
Encoding:
Makefile  |  1990-04-19  |  1.0 KB  |  53 lines

  1. # GRAB Graph Layout and Browser System
  2. #
  3. # Copyright (c) 1989, Tera Computer Company
  4.  
  5. OBJS= allocobj.o reclaim.o allochblk.o misc.o alloc.o
  6.  
  7. SRCS= allocobj.c reclaim.c allochblk.c misc.c alloc.c
  8.  
  9. CFLAGS=  -O -DNOSTATS
  10.  
  11. #Set SPECIALCFLAGS to -O for M68K and VAX, and to nothing for SPARC,
  12. #to avoid the -O flag on routines that don't work with it.
  13. SPECIALCFLAGS = -O -DNOSTATS
  14.  
  15. all: gc.o gc++.o
  16.  
  17. $(OBJS): runtime.h
  18.  
  19. gc.a: $(OBJS)
  20.     ar ru gc.a $(OBJS)
  21.     ranlib gc.a
  22.  
  23. gc.o: $(OBJS)
  24.     -ld -r -o gc.o $(OBJS)
  25. gc++.o: $(OBJS) gcmem.o
  26.     -ld -r -o gc++.o $(OBJS) gcmem.o
  27.     
  28.  
  29. #allocobj.c doesn't like optimization
  30. allocobj.o: allocobj.c
  31.     cc -c ${SPECIALCFLAGS} allocobj.c
  32.  
  33. clean: 
  34.     rm -f test gc.o gc.a test.o cons.o $(OBJS)
  35.  
  36. test.o: cons.h test.c
  37.  
  38. cons.o: cons.h cons.c
  39.  
  40. test: test.o cons.o gc.o
  41.     cc -o test test.o cons.o gc.o
  42. gcmem.o: gcmem.c
  43.     gcc -c -g gcmem.c
  44. gctest.o: gctest.c
  45.     g++ -c -g gctest.c
  46. gctest: gctest.o gc++.o
  47.     g++ -o gctest gctest.o gc++.o
  48.  
  49. shar:
  50.     makescript -o gc.shar README Makefile runtime.h ${SRCS} test.c cons.c cons.h
  51.  
  52.  
  53.